package cn.buildoncloud.labor.workermanapplet.sys.modules.services;

import cn.buildoncloud.labor.workermanapplet.dto.AppletUserDTO;
import cn.buildoncloud.labor.workermanapplet.dto.SysUserDTO;

import java.util.Map;

/**
 * Description: cn.buildoncloud.labor.workermanapplet.sys.modules.services
 * Created by CuiZibo on 2018/11/21 16:36
 */
public interface AuthorityService {


    Map<String,Object> getOpenIdAndCheckExists(String code);

    int bind(String openId, String userId);

    SysUserDTO querySysUserByPhone(String phoneNumber);

    AppletUserDTO queryAppletByOpenId(String openId);

    int unBind(String userId, String appletUserId);

    boolean queryIsBind(String userId, String appletUserId);
}
